package com.example.foo.account.model;

import java.math.BigDecimal;

/**
 * 账户流水
 */
@com.baomidou.mybatisplus.annotation.TableName("accountitem")
public class AccountItem extends com.example.core.model.BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 符号
	 */
	public enum Drcr {
		incr("收入"),
		decr("支出")
		;
		public final String text;
		Drcr(String text) {
			this.text = text;
		}
	}

	private Account.Acctc acctc;

	private AccountItem.Drcr drcr;

	private String name;

	private BigDecimal value;

	private BigDecimal balance;

	private Long userId;

	private Long anotherUserId;

	private String relType;

	private Long relId;

	private Integer periodMonth;

	private Integer periodDay;

	public AccountItem() {
	}

	/**
	 * @return 科目
	 */
	public Account.Acctc getAcctc() {
		return acctc;
	}

	/**
	 * @param acctc 科目
	 */
	public void setAcctc(Account.Acctc acctc) {
		this.acctc = acctc;
	}

	/**
	 * @return 符号
	 */
	public AccountItem.Drcr getDrcr() {
		return drcr;
	}

	/**
	 * @param drcr 符号
	 */
	public void setDrcr(AccountItem.Drcr drcr) {
		this.drcr = drcr;
	}

	/**
	 * @return 名称
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name 名称
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return 交易额
	 */
	public BigDecimal getValue() {
		return value;
	}

	/**
	 * @param value 交易额
	 */
	public void setValue(BigDecimal value) {
		this.value = value;
	}

	/**
	 * @return 交易后余额
	 */
	public BigDecimal getBalance() {
		return balance;
	}

	/**
	 * @param balance 交易后余额
	 */
	public void setBalance(BigDecimal balance) {
		this.balance = balance;
	}

	/**
	 * @return userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId userId
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * @return 对方用户ID
	 */
	public Long getAnotherUserId() {
		return anotherUserId;
	}

	/**
	 * @param anotherUserId 对方用户ID
	 */
	public void setAnotherUserId(Long anotherUserId) {
		this.anotherUserId = anotherUserId;
	}

	/**
	 * @return 关联类型
	 */
	public String getRelType() {
		return relType;
	}

	/**
	 * @param relType 关联类型
	 */
	public void setRelType(String relType) {
		this.relType = relType;
	}

	/**
	 * @return 关联目标
	 */
	public Long getRelId() {
		return relId;
	}

	/**
	 * @param relId 关联目标
	 */
	public void setRelId(Long relId) {
		this.relId = relId;
	}

	/**
	 * @return 账期月份
	 */
	public Integer getPeriodMonth() {
		return periodMonth;
	}

	/**
	 * @param periodMonth 账期月份
	 */
	public void setPeriodMonth(Integer periodMonth) {
		this.periodMonth = periodMonth;
	}

	/**
	 * @return 账期日期
	 */
	public Integer getPeriodDay() {
		return periodDay;
	}

	/**
	 * @param periodDay 账期日期
	 */
	public void setPeriodDay(Integer periodDay) {
		this.periodDay = periodDay;
	}

}
